package stack;

public class Node<T>  {
	private T t;
	private Node<T> next;
	
	public Node()
	{
		t=null;
		next=null;
	}
	public Node(T t,Node<T> next)
	{
		this.next=next;
		this.t=t;
	}
	public Node(T t)
	{
		this.t=t;
		this.next=null;
	}
	
	protected T getT() {
		return t;
	}
	protected void setT(T t) {
		this.t = t;
	}
	public Node<T> getNext() {
		return next;
	}
	public void setNext(Node<T> next) {
		this.next = next;
	}
	
	

}
